"""django_1 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from cmdb import views
from django.conf.urls import url
urlpatterns = [
    # path('admin/', admin.site.urls),
    url(r'^login$', views.login),
    url(r'^login2$', views.login2),
    url(r'^index$', views.index),
    url(r'^home', views.home),
    url(r'^orm', views.orm),
    url(r'^sel', views.sel),
    url(r'^dell', views.dell),
    url(r'^upd', views.upd),
    # url(r'^detail', views.detail),
    url(r'^detail-(\d+).html', views.detail),
    # url(r'^detail-(?P<nid>\d+)-(?P<uid>\d+).html', views.detail),  # 正则分组，推荐这种
    # url(r'^detail-(\d+).html', views.detail, name='detail'),  #
    url(r'^business$', views.business),
    url(r'^host$', views.host),
    url(r'^test_ajax$', views.test_ajax),
    url(r'^app$', views.app),
    url(r'^add_submit_ajax$', views.add_submit_ajax),
    url(r'^tpl$', views.tpl),
    url(r'^tpl2$', views.tpl2),
    url(r'^user_list$', views.user_list),
    url(r'^user_list2$', views.user_list2),
    url(r'^user_list3$', views.user_list3),
    url(r'^order/', views.Order.as_view()),
    url(r'^login3$', views.login3),
    url(r'^index2$', views.index2),
    url(r'^index3$', views.index3),
    url(r'^logout$', views.logout),
    url(r'^cache$', views.cache),
    url(r'^fm$', views.fm),
    url(r'^upload$', views.upload),
    url(r'^upload_file$', views.upload_file),
    url(r'^auth$', views.auth),
]
